import styles from './index.less';
import { DatePicker } from 'antd'
import { useEffect } from 'react';  // hooks
import { history } from 'umi';
export default function IndexPage(props: any) {
  useEffect(() => {   // useEffect ????
    setTimeout(() => {
      history.push('/user/one')
    }, 2000)
  }, [])
  return (
    <div>
      <h1 className={styles.title}>Page index</h1>
      <DatePicker ></DatePicker>
    </div>
  );
}

